35fb5b
@@ -1210,7 +1210,7 @@
static protected void replaceFiles(Path srcf, Path destf, FileSystem fs,
       Path tmppath) throws HiveException {
     FileStatus[] srcs;
     try {
-      srcs = fs.globStatus(srcf);
+      srcs = fs.listStatus(srcf);
     } catch (IOException e) {
       throw new HiveException("addFiles: filesystem error in check phase", e);
     }
